<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		/*缺点:
			1.代码冗余
			2.没有类型 都是Object
			3.占用的内存空间太大
		
		* 优化：
		* 	代码组织形式变好了
		* */
		var obj={
			age:18,
			name:"damu",
			wife:"zdy",
			coding:function(){
				console.log("very good")
			}
		}
		
		var obj2={
			age:58,
			name:"hsp",
			wife:"tg",
			coding:function(){
				console.log("very cha")
			}
		}
	</script>
</html>
